<!DOCTYPE HTML>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${site.name} - Powered by JEECMS</title>
<!--[if lt IE 9]>
<script src="${resSys}/html5.js" type="text/javascript"></script>
<![endif]-->
<link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
</head>

<body>
<div class="container">
	[#include "../include/页头顶栏.html"/]
    [#include "../include/标志和搜索.html"/]
    [#include "../include/页头导航栏.html"/]

	<div class="w700 mt10">
        <div class="rim05">
        	<div class="LanMu01-2">
                <div class="LanMu01-1"></div>
                <span>网络调查</span>
                <div class="LanMu01-3"></div>
            </div>
            
		    <div class="tptitle1" style="background:#f8f8f8; margin:auto;">
				投票主题：<span class="red">${subTopic.voteTopic.title?html}</span>， 总参与人数：<span class="red">${subTopic.voteTopic.totalCount}</span>人，
				<a href="${base}/vote_result.jspx?voteId=${subTopic.voteTopic.id}" target="_blank">返回投票结果页</a>
		    </div>
            
            <form id="tableForm" action="vote_reply_view.jspx" method="post">
            [#if pagination.list?size gt 0]
            <div class="tplistCon">
            <ul>
            [#list pagination.list as c]
            <li>${c.reply?html}</li>
            [/#list]
            </ul>
            </div>
            <input type="hidden" name="pageNo"/>
            <div class="clear-10"></div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" class="pn-sp">
		                共 ${pagination.totalCount} 条&nbsp;
		                每页 ${pagination.pageSize} 条&nbsp;
		                <input type="button" value="首 页" onclick="_gotoPage('1');"[#if pagination.firstPage] disabled="disabled"[/#if]/>
		                <input type="button" value="上一页" onclick="_gotoPage('${pagination.prePage}');"[#if pagination.firstPage] disabled="disabled"[/#if]/>
		                <input type="button" value="下一页" onclick="_gotoPage('${pagination.nextPage}');"[#if pagination.lastPage] disabled="disabled"[/#if]/>
		                <input type="button" value="尾 页" onclick="_gotoPage('${pagination.totalPage}');"[#if pagination.lastPage] disabled="disabled"[/#if]/>&nbsp;
		                当前 ${pagination.pageNo}/${pagination.totalPage} 页 &nbsp;转到第<input type="text" id="_goPs" style="width:50px" onfocus="this.select();" onkeypress="if(event.keyCode==13){$('#_goPage').click();return false;}"/>页
		                <input id="_goPage" type="button" value="转" onclick="_gotoPage($('#_goPs').val());"[#if pagination.totalPage==1] disabled="disabled"[/#if]/>
		            </td>
		            </tr>
            </table>
            <div class="clear-10"></div>
            <script type="text/javascript">
            function _gotoPage(pageNo) {
                try{
                    var tableForm = document.getElementById("tableForm");
                    $("input[name=pageNo]").val(pageNo);
                    tableForm.action="mycomments.jspx";
                    tableForm.onsubmit=null;
                    tableForm.submit();
                } catch(e) {
                    alert('_gotoPage(pageNo)方法出错');
                }
            }
            </script>
            [#else]
                <div>暂无回复</div>
            [/#if]
            </form>
		</div>
    </div>
  
  	<div class="w270">
    	<div class="rim05 mt10">
            <div class="LanMu01-2">
                <div class="LanMu01-1"></div>
                <span>进行中调查</span>
                <div class="LanMu01-3"></div>
            </div>
            <div class="surveylist">
            	<ul>
                    <li>
                    [@cms_vote]
                    ${tag_bean.title?html}
                    [/@cms_vote]
                    </li>
                </ul>
            </div>
    	</div>   
        <div class="clear-10"></div> 
        <div class="rim05">
            <div class="LanMu01-2">
            <div class="LanMu01-1"></div>
            <span>往期调查</span>
            <div class="LanMu01-3"></div>
            </div>
            <div class="surveylist">
            	<ul>
                [@cms_vote_list  siteId=site.id]
                [#list tag_list as vote]
                <li><a href="${base}/vote.jspx?voteId=${vote.id}">${vote.title?html}</a>&nbsp;[#if vote.endTime??]${vote.endTime?string("yyyy-MM-dd")}[/#if]</li>
                [/#list]
                [/@cms_vote_list]
                </ul>
            </div>
        </div>
    </div>

	[#include "../include/页脚友情链接栏.html"/]
	[#include "../include/页脚信息栏.html"/]
</div>
</body>
</html>